package org.scirp.ijmis.dao.personpaper;

import java.util.List;

import org.scirp.ijmis.po.personpaper.TPaperinformation;
import org.scirp.ijmis.po.personpaper.TStatusofpaper;
import org.scirp.ijmis.util.Pagination;

public interface IPaperStatusDAO {

	Long doInsertStartState(TPaperinformation tpi);

	void deletePaperinformationByPaperId(Long pid);

	int countPaperByStatus(int i, Long journalId);

	List<TPaperinformation> selectPaperByStatusId(int statusId, Long journalId,
			Pagination pagination);

	boolean updatePaperStatus(Long paperId, Long statusId,String remark);

	int countRemindPaperByStatus(int statusId, Long journalId);

	int countWarnPaperByStatus(int statusId, Long journalId);

	String checkOvertime(Long pid);

	boolean updatePaperStatus(Long paperId, Long statusId, String feeType,String remark);
	
	boolean updatePaperStatus(Long paperId, Long statusId,Long vol,Long no,String remark);

	List<TPaperinformation> selectPaperByPaperNo(Long paperno,Long journalId);

	List selectPaperByPaperId(Long paperid);

	int saveNotExistPaperInfo(String date);

	List countPaperByAllStatus(List<TStatusofpaper> statusList, Long journalid);

	int countViewPaperByVolNo(Long vol, Long no, Long journalId);

	List<TPaperinformation> selectViewPaperByVolNo(Long vol, Long no,
			Long journalId,Pagination pagination);

	boolean updatePaperStatus(String ids, Long nextStatusId);

}
